<template>
    <p class="btn">
        <span class="goback" @click.stop="goback">返回</span>
        <span class="save" @click.stop='save'>保存</span>
        <!-- 清除浮动 -->
        <br clear="all">
    </p>
</template>
<script>
// eslint-disable-next-line
/* eslint-disable */
export default {
    name: 'btn',
    data() {
        return {

        }
    },
    methods: {
        goback() {
            this.$emit("goback")
        },
        save() {
            this.$emit("save")
        }
    }
}
</script>
<style lang="scss" scoped>
@import "../../public/sass/var.scss";
.btn{
    padding: 10px;
    border: 1px solid #ccc;
    border-bottom: none;
    span{
        display: inline-block;
        background-color:$btnbackgroundcolor;
        padding: 5px 15px 5px 15px;
        color: #fff;
        // cursor:pointer;
    }
    .goback{
        float: left;
    }
    .save{
        float: right;
    }
}
</style>